<template>
  <PageContainer>
    <a-result
      :style="{
        height: '100%',
        background: '#fff',
      }"
      :title="userAccount"
      sub-title="欢迎管理员！很高兴您莅临，您的到来让我们倍感荣幸。"
    >
    <template #icon>
      <smile-twoTone />
    </template>
      <template #extra>
        <a-button type="primary" @click="handleClick">知道了</a-button>
      </template>
    </a-result>
  </PageContainer>
</template>

<script lang="ts" setup>
import { message } from 'ant-design-vue';
import { PageContainer as PageContainer } from '@ant-design-vue/pro-layout';
import { SmileTwoTone } from '@ant-design/icons-vue';
import { useRouter } from "vue-router";

const userAccount=`WELCOME! ${localStorage.getItem('userAccount')}`;


const router=useRouter();
const handleClick = () => {
  router.replace({path:'/admins'})
};
</script>
